<com:TPanel id="ViewContent" Style="width: 100%;" GroupingText="<%[Downloads]%>">
	<com:TDataList
		DataKeyField="id"
		Style="width: 100%;"
		ID="GroupDataList"
		RepeatColumns="3"
		RepeatDirection="Horizontal"
		OnItemCommand="onItemCommand"
		EnableViewState="True"
		>
		<prop:ItemTemplate>
			<div style="width: 33%; text-align:center;"><com:TLinkButton Text="<%#$this->DataItem['name'] %>" CommandName="ShowContent" CommandParameter=<%# $this->DataItem['id'] %>/>&nbsp;</div>
		</prop:ItemTemplate>
	</com:TDataList>
	<br>
	<com:TPanel Id="pnlDescription">
	<com:TLiteral Id="grpDescription" />
	</com:TPanel>
</com:TPanel>
<com:TPanel Id="pnlFiles" GroupingText="<%[Available files]%>">
<br />
	<com:TDataList
		Style="width: 100%;"
		ID="FilesDataList"
		OnItemCommand="onItemCommand"
		ItemStyle.CssClass="grid-row1"
		AlternatingItemStyle.CssClass="grid-row2"
		HeaderStyle.CssClass="grid-header"
		HeaderStyle.Width="100%"
		HeaderStyle.Height="25px"
		>
		<prop:HeaderTemplate>
		<table width="100%" >
		<tr>
  			<th width="30%" align=left><%[Filename]%></th>
  			<th width="35%" align=left><%[Description]%></th>
  			<th width="20%" align=left><%[Date]%></th>
  			<th width="15%" style="text-align: right;"><%[Size]%></th>
  			<th width="10%" style="text-align: right;"><%[Dl]%></th>
		</tr>
		</table>
		</prop:HeaderTemplate>

		<prop:ItemTemplate>
		<table width=100%>
		<tr>
			<td width=30%><com:TLinkButton Text="<%#$this->DataItem['filename'] %>" CommandName="SendFile" CommandParameter=<%# $this->DataItem['id'] %> /></td>
			<td width=35%><%# sprintf("%s &nbsp;",$this->DataItem['description']) %></td>
			<td width="20%"><%# date('d-m-Y H:i', $this->DataItem['filedate']) %>&nbsp;</td>
			<td width="15%" style="text-align: right;"><%# sprintf("%d KB", ($this->DataItem['filesize'] /1024)) %>&nbsp;</td>
			<td width="10%" style="text-align: right;"><%# $this->DataItem['dlcount'] %>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="5" style="border-bottom: 1px solid black;" width=100%><%#nl2br($this->DataItem['comment']) %></td>
		</tr>
		</table>
		</prop:ItemTemplate>

		<prop:FooterTemplate>
		</prop:FooterTemplate>

	</com:TDataList>
</com:TPanel>